<div class="categorias view">
<h2><?php  echo __('Categoria: ').h($categoria['Categoria']['nome']); ?></h2>
	<dl>
		<dt><?php echo __('Código: '); ?></dt>
		<dd>
			<?php echo h($categoria['Categoria']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nome: '); ?></dt>
		<dd>
			<?php echo h($categoria['Categoria']['nome']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Título: '); ?></dt>
		<dd>
			<?php echo h($categoria['Categoria']['abreviacao']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Imagem(faixa): '); ?></dt>
		<dd>
			<img src="<?php
				if($categoria['Categoria']['imgfaixapath'] != "") {
					echo $this->webroot.$categoria['Categoria']['imgfaixapath'];
				} else {
					echo $this->webroot.'img/no_image.jpg';
				}
			?>" >
			&nbsp;
		</dd>
		<dt><?php echo __('Tipo de Cliente: '); ?></dt>
		<dd>
			<?php echo h($categoria['Tipocliente']['nome']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ordem de Exib: '); ?></dt>
		<dd>
			<?php echo h($categoria['Categoria']['ordemexibicao']) == 0 ? 'Não selecionada' : h($categoria['Categoria']['ordemexibicao']).'ª'; ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Data de vencimento opcional: '); ?></dt>
		<dd>
			<?php echo h($categoria['Categoria']['vencimentoopcional']) == true ? 'SIM' : 'NÃO'; ?>
			&nbsp;
		</dd>
	</dl>
	
	<div id="ufs_title">
		<div class="actions"><?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $categoria['Categoria']['id'])); ?></div>
		<div class="actions"><?php echo $this->Form->postLink(__('Excluir'), array('action' => 'delete', $categoria['Categoria']['id']), null, __('Tem certeza que deseja excluir a categoria: '.$categoria['Categoria']['nome'].'?', $categoria['Categoria']['id'])); ?></div>
		<div class="actions"><?php echo $this->Html->link(__('Voltar'), array('action' => 'index')); ?></div>
	</div>
</div>
<div class="main_menu_div">
	<h3><?php echo $this->Html->link('HOME', array('controller' => 'adm', 'action' => 'index')); ?></h3>
	<ul id="accordion">
		<li id="main_menu">Cadastro</li>
		<ul>
			<li><?php echo $this->Html->link(__('Anexos E-mail'), array('controller' => 'anexoemails', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Arquivos de Termos'), array('controller' => 'arquivotermos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Bancos'), array('controller' => 'bancos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Categorias'), array('controller' => 'categorias', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Corretores'), array('controller' => 'corretors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Entidades'), array('controller' => 'entidades', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Estados'), array('controller' => 'ufs', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Estado Civil'), array('controller' => 'estadocivils', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Formas de Pagamento'), array('controller' => 'fpagamentos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Imagens'), array('controller' => 'imagems', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Operadoras'), array('controller' => 'operadoras', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Operadoras Detalhes'), array('controller' => 'operadoradetalhes', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Órgãos'), array('controller' => 'orgaos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Parcelas'), array('controller' => 'parcelas', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Parentesco'), array('controller' => 'parentescos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Perfil Servidor'), array('controller' => 'perfilservidors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Profiles'), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Planos de Saúde'), array('controller' => 'planosaudes', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Preços'), array('controller' => 'precos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Sindicatos'), array('controller' => 'sindicatos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Situação Servidor'), array('controller' => 'statusservidors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Sub-Entidades'), array('controller' => 'subentidades', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Tipos de Cliente'), array('controller' => 'tipoclientes', 'action' => 'index')); ?> </li>
			
		</ul>
		<li id="main_menu">Vínculos</li>
		<ul>
			<li><?php echo $this->Html->link(__('Entidades'), array('controller' => 'vinc_entidades', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Formas de Pagamento'), array('controller' => 'vinc_pagamentos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Parentescos'), array('controller' => 'vinc_parentescos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Sindicato'), array('controller' => 'vinc_sindicatos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Odontológico'), array('controller' => 'vinc_odontologicos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Estados'), array('controller' => 'vinc_ufs', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Categorias'), array('controller' => 'vinc_categorias', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Órgãos'), array('controller' => 'vinc_orgaos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Corretores'), array('controller' => 'vinc_corretors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Limpar Vínculos'), array('controller' => 'vinc_clears', 'action' => 'index')); ?> </li>
			
		</ul>
		<li id="main_menu">Relatórios</li>
		<ul>
			<li><?php echo $this->Html->link(__('Cadastrados'), array('controller' => 'relat_cadastrados', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Detalhado'), array('controller' => 'relat_detalhados', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Financeiro'), array('controller' => 'relat_financeiros', 'action' => 'index')); ?> </li>
		</ul>
		<li id="main_menu">Usuários</li>
		<ul>
			<li><?php echo $this->Html->link(__('Listar Usuários'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		</ul>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Orgaos'); ?></h3>
	<?php if (!empty($categoria['Orgao'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Abreviacao'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($categoria['Orgao'] as $orgao): ?>
		<tr>
			<td><?php echo $orgao['id']; ?></td>
			<td><?php echo $orgao['nome']; ?></td>
			<td><?php echo $orgao['abreviacao']; ?></td>
			<td><?php echo $orgao['created']; ?></td>
			<td><?php echo $orgao['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'orgaos', 'action' => 'view', $orgao['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'orgaos', 'action' => 'edit', $orgao['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'orgaos', 'action' => 'delete', $orgao['id']), null, __('Are you sure you want to delete # %s?', $orgao['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Orgao'), array('controller' => 'orgaos', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Ufs'); ?></h3>
	<?php if (!empty($categoria['Uf'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Abreviacao'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($categoria['Uf'] as $uf): ?>
		<tr>
			<td><?php echo $uf['id']; ?></td>
			<td><?php echo $uf['nome']; ?></td>
			<td><?php echo $uf['abreviacao']; ?></td>
			<td><?php echo $uf['created']; ?></td>
			<td><?php echo $uf['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'ufs', 'action' => 'view', $uf['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'ufs', 'action' => 'edit', $uf['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'ufs', 'action' => 'delete', $uf['id']), null, __('Are you sure you want to delete # %s?', $uf['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Uf'), array('controller' => 'ufs', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
